package org.janon.httpproxy.server;

import org.janon.httpproxy.Log;


public class ServerLauncher
{
	public static void main(String[] args)
	{
		boolean needLog = false;
		if(args.length>=1)
		{
			try
			{
				if(args.length>=1){
					if(args[0].equalsIgnoreCase("-log")){
						needLog = true;
					}
				}
			}
			catch(Exception e)
			{
			}
		}
		Log.getInstance().setRecordToFile(needLog);
		Server server = new Server(80);
		server.start();
	}
}
